﻿using Admin.Core.Common.BaseModel;
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace Admin.Core.Model.Warehouse
{
    /// <summary>
    /// 库位
    /// </summary>
    [Table(Name = "WH_XBC_LOCATION")]
    public class XbcLocationEntity : EntityAdd, IEntitySoftDelete
    {
        /// <summary>
        /// 库位名称
        /// </summary>
        [Column(Name = "NAME")]
        public string Name { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        [Description("是否删除")]
        [Column(Name = "ISDELETED")]//
        public bool IsDeleted { get; set; } = false;

        /// <summary>
        /// 备注
        /// </summary>
        [Column(Name = "REMARK")]//
        public string Remark { get; set; }

        /// <summary>
        /// 仓库
        /// </summary>
        [Column(Name = "XBCWAREHOUSEID")]
        public long XbcWarehouseId { get; set; }

        public XbcWarehouseEntity XbcWarehouse { get; set; }

        /// <summary>
        /// 启用
        /// </summary>
        [Column(Name = "ENABLED")]
        public bool Enabled { get; set; } = true;
    }
}
